import Vue from 'vue';
import VueResource from 'vue-resource';
import App from './App';
import router from './router/index.js';
import store from './store';

import 'common/stylus/index.styl';
import axios from 'axios';
import apiConfig from '../config/api.config';

Vue.prototype.$axios = axios;
axios.defaults.baseURL = apiConfig.baseUrl;// 配置接口地址
Vue.config.productionTip = false;
axios.defaults.withCredentials = false;

Vue.use(VueResource);

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
});
